package com.wyg.command;

/**
 * @description:
 * @author: WYG
 * @time: 2021/3/30 8:46
 */

public class Light {

    private Integer state;
    public Light() {}
    public Light(Integer state) {
        this.state = state;
    }
    public void on() {
        this.state = 1;
        System.out.println("灯打开了!");
    }
    public void off() {
        System.out.println("灯关闭了!");
        this.state = 0;
    }
}
